﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using QuanLyGiaoVuDAL.DTO;
using QuanLyGiaoVuDAL.Repositories.DatabaseRepositories;

namespace QuanLyGiaoVuService.CommandServices
{
    public class BangDiemCommandService:IBangDiemCommandService
    {        
        private IBangDiemRepository _bangDiemRepository;

        public BangDiemCommandService(IBangDiemRepository bangDiemRepository)
        {
            _bangDiemRepository = bangDiemRepository;
        }
        public BangDiemDTO InsertBangDiem(BangDiemDTO bangDiemDTO)
        {
            return _bangDiemRepository.InsertBangDiem(bangDiemDTO);
        }
        public BangDiemDTO UpdateBangDiem(BangDiemDTO bangDiemDTO)
        {
            return _bangDiemRepository.UpdateBangDiem(bangDiemDTO);
        }
        public bool DeleteBangDiem(Guid maBangDiem)
        {
            return _bangDiemRepository.DeleteBangDiem(maBangDiem);
        }

        public bool InsertOrUpdateBangDiem(BangDiemDTO bangDiemDTO)
        {
            return _bangDiemRepository.InsertOrUpdateBangDiem(bangDiemDTO);
        }
    }
}
